﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_KetChuyenChiPhi : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("CmdExit")]
        private Button _CmdExit;
        [AccessedThroughProperty("CmdGhiSo")]
        private Button _CmdGhiSo;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("GroupBox3")]
        private GroupBox _GroupBox3;
        [AccessedThroughProperty("GroupBox4")]
        private GroupBox _GroupBox4;
        [AccessedThroughProperty("GroupBox5")]
        private GroupBox _GroupBox5;
        [AccessedThroughProperty("ImageList1")]
        private ImageList _ImageList1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("TxtChiPhiCo")]
        private C1NumericEdit _TxtChiPhiCo;
        [AccessedThroughProperty("TxtChiPhiNo")]
        private C1NumericEdit _TxtChiPhiNo;
        [AccessedThroughProperty("TxtDoanhThuCo")]
        private C1NumericEdit _TxtDoanhThuCo;
        [AccessedThroughProperty("TxtDoanhThuNo")]
        private C1NumericEdit _TxtDoanhThuNo;
        [AccessedThroughProperty("TxtKetChuyenDoanhThu")]
        private C1NumericEdit _TxtKetChuyenDoanhThu;
        [AccessedThroughProperty("TxtTongKetChuyenChiPhi")]
        private C1NumericEdit _TxtTongKetChuyenChiPhi;
        [AccessedThroughProperty("VSChiPhi")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSChiPhi;
        [AccessedThroughProperty("VSDoanhThu")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSDoanhThu;
        [AccessedThroughProperty("VSKetChuyenChiPhi")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSKetChuyenChiPhi;
        [AccessedThroughProperty("VSKetChuyenDoanhThu")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSKetChuyenDoanhThu;
        [AccessedThroughProperty("VSKetChuyenLaiLo")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSKetChuyenLaiLo;
        private string cFrmFormat;
        private string cFrmKhoaChungTu;
        private string cFrmNamThang;
        private string cFrmNgayChungTu;
        private string cFrmSoChungTu;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsKetChuyenChiPhi objCP;
        private GLPhanBoChiPhiTraTruoc objPB;
        private clsDMTaiKhoan objTK;
        private string pKhoaTKDoanhThu;
        private string pKhoaTKLoiNhuan;
        private string pSoTKDoanhThu;
        private string pSoTKLoiNuan;

        public Frm_KetChuyenChiPhi()
        {
            base.Load += new EventHandler(this.Frm_KeChuyenChiPhi_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.cFrmNamThang = "";
            this.cFrmFormat = "";
            this.objCP = new clsKetChuyenChiPhi();
            this.objTK = new clsDMTaiKhoan();
            this.objPB = new GLPhanBoChiPhiTraTruoc();
            this.InitializeComponent();
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdGhiSo_Click(object sender, EventArgs e)
        {
            if (this.SaveTmp() && this.Save())
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Đ\x00e3 thực hiện xong nghiệp vụ kết chuyển chi ph\x00ed - l\x00e3i lỗ!", ""));
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_KeChuyenChiPhi_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                if (LVYModule.ReturnIfNull(this.cFrmNamThang, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.cFrmNamThang = SearchModule.GetNamThang("");
                }
                if (LVYModule.ReturnIfNull(this.cFrmNamThang, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.Dispose();
                }
                else if (!LVYModule.CheckDateLock(this.cFrmNamThang.Trim() + LVYModule.sRight("00" + Conversions.ToString(DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sLeft(this.cFrmNamThang, 4)), Conversions.ToInteger(LVYModule.sRight(this.cFrmNamThang, 2)))), 2)))
                {
                    this.Dispose();
                }
                else
                {
                    if (this.objPB.ChuaPhanBo(this.cFrmNamThang) && LVYModule.ConfirmDelete(modGeneral.Tranlated("Bạn chưa ph\x00e2n bổ chi ph\x00ed trả trước! Bạn c\x00f3 muốn ph\x00e2n bổ chi ph\x00ed trả trước kh\x00f4ng?", "")))
                    {
                        MyProject.Forms.Frm_PhanBoChiPhiTraTruoc.cFrmNamThang = this.cFrmNamThang;
                        MyProject.Forms.Frm_PhanBoChiPhiTraTruoc.ShowDialog();
                    }
                    this.cFrmFormat = modGeneral.H_FORMATNUMBER;
                    this.objCP.KhoaDonVi = modGeneral.H_CLIENT;
                    this.objCP.NamThang = this.cFrmNamThang;
                    this.objTK.LoadByCode("911");
                    this.pKhoaTKDoanhThu = this.objTK.Khoa;
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        this.pSoTKDoanhThu = this.objTK.SoTaiKhoan.Trim() + "." + this.objTK.TenViet.Trim();
                    }
                    else
                    {
                        this.pSoTKDoanhThu = this.objTK.SoTaiKhoan.Trim() + "." + this.objTK.TenAnh.Trim();
                    }
                    if (this.pKhoaTKDoanhThu.Trim() == "")
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("T\x00e0i khoản doanh thu kh\x00f4ng tồn tại! Bạn phải nhập t\x00e0i khoản doanh thu.", ""));
                        MyProject.Forms.Frm_DMTaiKhoan.ShowDialog();
                        this.objTK.LoadByCode("911");
                        this.pKhoaTKDoanhThu = this.objTK.Khoa;
                        if (modGeneral.H_LANGUAGE == "VIET")
                        {
                            this.pSoTKDoanhThu = this.objTK.SoTaiKhoan.Trim() + "." + this.objTK.TenViet.Trim();
                        }
                        else
                        {
                            this.pSoTKDoanhThu = this.objTK.SoTaiKhoan.Trim() + "." + this.objTK.TenAnh.Trim();
                        }
                        if (this.pKhoaTKDoanhThu.Trim() == "")
                        {
                            this.Dispose();
                            return;
                        }
                    }
                    this.objTK.ClearAll();
                    this.objTK.LoadByCode("4212");
                    this.pKhoaTKLoiNhuan = this.objTK.Khoa;
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        this.pSoTKLoiNuan = this.objTK.SoTaiKhoan.Trim() + "." + this.objTK.TenViet.Trim();
                    }
                    else
                    {
                        this.pSoTKDoanhThu = this.objTK.SoTaiKhoan.Trim() + "." + this.objTK.TenAnh.Trim();
                    }
                    if (this.pKhoaTKDoanhThu.Trim() == "")
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("T\x00e0i khoản lợi nhuận chưa ph\x00e2n phối kh\x00f4ng tồn tại! Bạn phải nhập t\x00e0i khoản lợi nhuận chưa ph\x00e2n phối.", ""));
                        MyProject.Forms.Frm_DMTaiKhoan.ShowDialog();
                        this.objTK.LoadByCode("4212");
                        this.pKhoaTKLoiNhuan = this.objTK.Khoa;
                        if (modGeneral.H_LANGUAGE == "VIET")
                        {
                            this.pSoTKLoiNuan = this.objTK.SoTaiKhoan.Trim() + "." + this.objTK.TenViet.Trim();
                        }
                        else
                        {
                            this.pSoTKLoiNuan = this.objTK.SoTaiKhoan.Trim() + "." + this.objTK.TenAnh.Trim();
                        }
                        if (this.pKhoaTKLoiNhuan.Trim() == "")
                        {
                            this.Dispose();
                            return;
                        }
                    }
                    this.cFrmKhoaChungTu = modGeneral.H_PREFIX + "GT" + LVYModule.sRight("000000000000000" + this.cFrmNamThang, 11);
                    this.cFrmSoChungTu = "GT-" + this.cFrmNamThang;
                    this.cFrmNgayChungTu = Conversions.ToString(DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sLeft(this.cFrmNamThang, 4)), Conversions.ToInteger(LVYModule.sRight(this.cFrmNamThang, 2)))) + "/" + LVYModule.sRight(this.cFrmNamThang, 2) + "/" + LVYModule.sLeft(this.cFrmNamThang, 4);
                    this.LoadDoanhThu();
                    this.LoadChiPhi();
                    this.KetChuyenDoanhThu();
                    this.KetChuyenChiPhi();
                    this.KetChuyenDoi();
                    this.KetChuyenLaiLo();
                }
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_KetChuyenChiPhi));
            this.GroupBox2 = new GroupBox();
            this.TxtChiPhiCo = new C1NumericEdit();
            this.TxtChiPhiNo = new C1NumericEdit();
            this.Label1 = new Label();
            this.VSChiPhi = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.GroupBox1 = new GroupBox();
            this.TxtDoanhThuCo = new C1NumericEdit();
            this.TxtDoanhThuNo = new C1NumericEdit();
            this.Label5 = new Label();
            this.VSDoanhThu = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.GroupBox5 = new GroupBox();
            this.VSKetChuyenLaiLo = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.GroupBox4 = new GroupBox();
            this.TxtTongKetChuyenChiPhi = new C1NumericEdit();
            this.Label3 = new Label();
            this.VSKetChuyenChiPhi = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.GroupBox3 = new GroupBox();
            this.TxtKetChuyenDoanhThu = new C1NumericEdit();
            this.Label2 = new Label();
            this.VSKetChuyenDoanhThu = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.ImageList1 = new ImageList(this.components);
            this.CmdExit = new Button();
            this.CmdGhiSo = new Button();
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.Panel1 = new Panel();
            this.GroupBox2.SuspendLayout();
            ((ISupportInitialize) this.TxtChiPhiCo).BeginInit();
            ((ISupportInitialize) this.TxtChiPhiNo).BeginInit();
            this.VSChiPhi.BeginInit();
            this.GroupBox1.SuspendLayout();
            ((ISupportInitialize) this.TxtDoanhThuCo).BeginInit();
            ((ISupportInitialize) this.TxtDoanhThuNo).BeginInit();
            this.VSDoanhThu.BeginInit();
            this.GroupBox5.SuspendLayout();
            this.VSKetChuyenLaiLo.BeginInit();
            this.GroupBox4.SuspendLayout();
            ((ISupportInitialize) this.TxtTongKetChuyenChiPhi).BeginInit();
            this.VSKetChuyenChiPhi.BeginInit();
            this.GroupBox3.SuspendLayout();
            ((ISupportInitialize) this.TxtKetChuyenDoanhThu).BeginInit();
            this.VSKetChuyenDoanhThu.BeginInit();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            this.C1DockingTabPage2.SuspendLayout();
            this.Panel1.SuspendLayout();
            this.SuspendLayout();
            this.GroupBox2.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.GroupBox2.Controls.Add(this.TxtChiPhiCo);
            this.GroupBox2.Controls.Add(this.TxtChiPhiNo);
            this.GroupBox2.Controls.Add(this.Label1);
            this.GroupBox2.Controls.Add(this.VSChiPhi);
            Point point = new Point(6, 0xd3);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            Size size = new Size(0x36d, 300);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 1;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Chi ph\x00ed ph\x00e1t sinh trong kỳ";
            this.TxtChiPhiCo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtChiPhiCo.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x2fd, 0x112);
            this.TxtChiPhiCo.Location = point;
            this.TxtChiPhiCo.Name = "TxtChiPhiCo";
            Padding padding = new Padding(1);
            this.TxtChiPhiCo.Padding = padding;
            this.TxtChiPhiCo.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtChiPhiCo.Size = size;
            this.TxtChiPhiCo.TabIndex = 0x5e;
            this.TxtChiPhiCo.Tag = null;
            this.TxtChiPhiCo.TextAlign = HorizontalAlignment.Right;
            this.TxtChiPhiCo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtChiPhiCo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtChiPhiCo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtChiPhiNo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtChiPhiNo.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x28f, 0x112);
            this.TxtChiPhiNo.Location = point;
            this.TxtChiPhiNo.Name = "TxtChiPhiNo";
            padding = new Padding(1);
            this.TxtChiPhiNo.Padding = padding;
            this.TxtChiPhiNo.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtChiPhiNo.Size = size;
            this.TxtChiPhiNo.TabIndex = 0x5d;
            this.TxtChiPhiNo.Tag = null;
            this.TxtChiPhiNo.TextAlign = HorizontalAlignment.Right;
            this.TxtChiPhiNo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtChiPhiNo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtChiPhiNo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label1.AutoEllipsis = true;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            this.Label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x242, 0x115);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            this.Label1.RightToLeft = RightToLeft.No;
            size = new Size(0x44, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x5c;
            this.Label1.Text = "Tổng cộng";
            this.Label1.TextAlign = ContentAlignment.TopRight;
            this.VSChiPhi.AllowEditing = false;
            this.VSChiPhi.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSChiPhi.ColumnInfo = manager.GetString("VSChiPhi.ColumnInfo");
            this.VSChiPhi.Dock = DockStyle.Top;
            this.VSChiPhi.ExtendLastCol = true;
            this.VSChiPhi.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(3, 0x10);
            this.VSChiPhi.Location = point;
            this.VSChiPhi.Name = "VSChiPhi";
            this.VSChiPhi.Rows.Count = 1;
            this.VSChiPhi.Rows.DefaultSize = 0x11;
            size = new Size(0x367, 0xfe);
            this.VSChiPhi.Size = size;
            this.VSChiPhi.StyleInfo = manager.GetString("VSChiPhi.StyleInfo");
            this.VSChiPhi.TabIndex = 0x16;
            this.VSChiPhi.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.GroupBox1.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.GroupBox1.Controls.Add(this.TxtDoanhThuCo);
            this.GroupBox1.Controls.Add(this.TxtDoanhThuNo);
            this.GroupBox1.Controls.Add(this.Label5);
            this.GroupBox1.Controls.Add(this.VSDoanhThu);
            point = new Point(3, 8);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x36d, 0xc9);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Doanh thu trong kỳ";
            this.TxtDoanhThuCo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtDoanhThuCo.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x2fe, 0xb1);
            this.TxtDoanhThuCo.Location = point;
            this.TxtDoanhThuCo.Name = "TxtDoanhThuCo";
            padding = new Padding(1);
            this.TxtDoanhThuCo.Padding = padding;
            this.TxtDoanhThuCo.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtDoanhThuCo.Size = size;
            this.TxtDoanhThuCo.TabIndex = 0x5b;
            this.TxtDoanhThuCo.Tag = null;
            this.TxtDoanhThuCo.TextAlign = HorizontalAlignment.Right;
            this.TxtDoanhThuCo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtDoanhThuCo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtDoanhThuCo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtDoanhThuNo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtDoanhThuNo.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x290, 0xb1);
            this.TxtDoanhThuNo.Location = point;
            this.TxtDoanhThuNo.Name = "TxtDoanhThuNo";
            padding = new Padding(1);
            this.TxtDoanhThuNo.Padding = padding;
            this.TxtDoanhThuNo.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtDoanhThuNo.Size = size;
            this.TxtDoanhThuNo.TabIndex = 90;
            this.TxtDoanhThuNo.Tag = null;
            this.TxtDoanhThuNo.TextAlign = HorizontalAlignment.Right;
            this.TxtDoanhThuNo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtDoanhThuNo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtDoanhThuNo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label5.AutoEllipsis = true;
            this.Label5.AutoSize = true;
            this.Label5.BackColor = Color.Transparent;
            this.Label5.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x243, 180);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            this.Label5.RightToLeft = RightToLeft.No;
            size = new Size(0x44, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x59;
            this.Label5.Text = "Tổng cộng";
            this.Label5.TextAlign = ContentAlignment.TopRight;
            this.VSDoanhThu.AllowEditing = false;
            this.VSDoanhThu.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSDoanhThu.ColumnInfo = manager.GetString("VSDoanhThu.ColumnInfo");
            this.VSDoanhThu.Dock = DockStyle.Top;
            this.VSDoanhThu.ExtendLastCol = true;
            this.VSDoanhThu.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(3, 0x10);
            this.VSDoanhThu.Location = point;
            this.VSDoanhThu.Name = "VSDoanhThu";
            this.VSDoanhThu.Rows.Count = 1;
            this.VSDoanhThu.Rows.DefaultSize = 0x11;
            size = new Size(0x367, 160);
            this.VSDoanhThu.Size = size;
            this.VSDoanhThu.StyleInfo = manager.GetString("VSDoanhThu.StyleInfo");
            this.VSDoanhThu.TabIndex = 0x15;
            this.VSDoanhThu.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.GroupBox5.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.GroupBox5.Controls.Add(this.VSKetChuyenLaiLo);
            point = new Point(6, 0x1a8);
            this.GroupBox5.Location = point;
            this.GroupBox5.Name = "GroupBox5";
            size = new Size(0x36d, 0x57);
            this.GroupBox5.Size = size;
            this.GroupBox5.TabIndex = 5;
            this.GroupBox5.TabStop = false;
            this.GroupBox5.Text = "Kết chuyển l\x00e3i lỗ";
            this.VSKetChuyenLaiLo.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSKetChuyenLaiLo.ColumnInfo = manager.GetString("VSKetChuyenLaiLo.ColumnInfo");
            this.VSKetChuyenLaiLo.Dock = DockStyle.Top;
            this.VSKetChuyenLaiLo.ExtendLastCol = true;
            this.VSKetChuyenLaiLo.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(3, 0x10);
            this.VSKetChuyenLaiLo.Location = point;
            this.VSKetChuyenLaiLo.Name = "VSKetChuyenLaiLo";
            this.VSKetChuyenLaiLo.Rows.Count = 1;
            this.VSKetChuyenLaiLo.Rows.DefaultSize = 0x11;
            size = new Size(0x367, 0x41);
            this.VSKetChuyenLaiLo.Size = size;
            this.VSKetChuyenLaiLo.StyleInfo = manager.GetString("VSKetChuyenLaiLo.StyleInfo");
            this.VSKetChuyenLaiLo.TabIndex = 0x15;
            this.VSKetChuyenLaiLo.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.GroupBox4.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.GroupBox4.Controls.Add(this.TxtTongKetChuyenChiPhi);
            this.GroupBox4.Controls.Add(this.Label3);
            this.GroupBox4.Controls.Add(this.VSKetChuyenChiPhi);
            point = new Point(3, 0xb0);
            this.GroupBox4.Location = point;
            this.GroupBox4.Name = "GroupBox4";
            size = new Size(0x36d, 0xf8);
            this.GroupBox4.Size = size;
            this.GroupBox4.TabIndex = 3;
            this.GroupBox4.TabStop = false;
            this.GroupBox4.Text = "Kết chuyển chi ph\x00ed";
            this.TxtTongKetChuyenChiPhi.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongKetChuyenChiPhi.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x2f9, 0xde);
            this.TxtTongKetChuyenChiPhi.Location = point;
            this.TxtTongKetChuyenChiPhi.Name = "TxtTongKetChuyenChiPhi";
            padding = new Padding(1);
            this.TxtTongKetChuyenChiPhi.Padding = padding;
            this.TxtTongKetChuyenChiPhi.ReadOnly = true;
            size = new Size(0x71, 20);
            this.TxtTongKetChuyenChiPhi.Size = size;
            this.TxtTongKetChuyenChiPhi.TabIndex = 0x5b;
            this.TxtTongKetChuyenChiPhi.Tag = null;
            this.TxtTongKetChuyenChiPhi.TextAlign = HorizontalAlignment.Right;
            this.TxtTongKetChuyenChiPhi.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongKetChuyenChiPhi.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongKetChuyenChiPhi.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label3.AutoEllipsis = true;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            this.Label3.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x2ae, 0xe1);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            this.Label3.RightToLeft = RightToLeft.No;
            size = new Size(0x44, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x59;
            this.Label3.Text = "Tổng cộng";
            this.Label3.TextAlign = ContentAlignment.TopRight;
            this.VSKetChuyenChiPhi.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSKetChuyenChiPhi.ColumnInfo = manager.GetString("VSKetChuyenChiPhi.ColumnInfo");
            this.VSKetChuyenChiPhi.Dock = DockStyle.Top;
            this.VSKetChuyenChiPhi.ExtendLastCol = true;
            this.VSKetChuyenChiPhi.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(3, 0x10);
            this.VSKetChuyenChiPhi.Location = point;
            this.VSKetChuyenChiPhi.Name = "VSKetChuyenChiPhi";
            this.VSKetChuyenChiPhi.Rows.Count = 1;
            this.VSKetChuyenChiPhi.Rows.DefaultSize = 0x11;
            size = new Size(0x367, 0xcb);
            this.VSKetChuyenChiPhi.Size = size;
            this.VSKetChuyenChiPhi.StyleInfo = manager.GetString("VSKetChuyenChiPhi.StyleInfo");
            this.VSKetChuyenChiPhi.TabIndex = 0x15;
            this.VSKetChuyenChiPhi.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.GroupBox3.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.GroupBox3.Controls.Add(this.TxtKetChuyenDoanhThu);
            this.GroupBox3.Controls.Add(this.Label2);
            this.GroupBox3.Controls.Add(this.VSKetChuyenDoanhThu);
            point = new Point(3, 10);
            this.GroupBox3.Location = point;
            this.GroupBox3.Name = "GroupBox3";
            size = new Size(0x36c, 160);
            this.GroupBox3.Size = size;
            this.GroupBox3.TabIndex = 1;
            this.GroupBox3.TabStop = false;
            this.GroupBox3.Text = "Kết chuyển doanh thu";
            this.TxtKetChuyenDoanhThu.BorderStyle = BorderStyle.FixedSingle;
            this.TxtKetChuyenDoanhThu.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x2f9, 0x89);
            this.TxtKetChuyenDoanhThu.Location = point;
            this.TxtKetChuyenDoanhThu.Name = "TxtKetChuyenDoanhThu";
            padding = new Padding(1);
            this.TxtKetChuyenDoanhThu.Padding = padding;
            this.TxtKetChuyenDoanhThu.ReadOnly = true;
            size = new Size(0x70, 20);
            this.TxtKetChuyenDoanhThu.Size = size;
            this.TxtKetChuyenDoanhThu.TabIndex = 0x5b;
            this.TxtKetChuyenDoanhThu.Tag = null;
            this.TxtKetChuyenDoanhThu.TextAlign = HorizontalAlignment.Right;
            this.TxtKetChuyenDoanhThu.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtKetChuyenDoanhThu.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtKetChuyenDoanhThu.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label2.AutoEllipsis = true;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            this.Label2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x2ae, 140);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            this.Label2.RightToLeft = RightToLeft.No;
            size = new Size(0x44, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x59;
            this.Label2.Text = "Tổng cộng";
            this.Label2.TextAlign = ContentAlignment.TopRight;
            this.VSKetChuyenDoanhThu.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSKetChuyenDoanhThu.ColumnInfo = manager.GetString("VSKetChuyenDoanhThu.ColumnInfo");
            this.VSKetChuyenDoanhThu.Dock = DockStyle.Top;
            this.VSKetChuyenDoanhThu.ExtendLastCol = true;
            this.VSKetChuyenDoanhThu.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(3, 0x10);
            this.VSKetChuyenDoanhThu.Location = point;
            this.VSKetChuyenDoanhThu.Name = "VSKetChuyenDoanhThu";
            this.VSKetChuyenDoanhThu.Rows.Count = 1;
            this.VSKetChuyenDoanhThu.Rows.DefaultSize = 0x11;
            size = new Size(870, 0x76);
            this.VSKetChuyenDoanhThu.Size = size;
            this.VSKetChuyenDoanhThu.StyleInfo = manager.GetString("VSKetChuyenDoanhThu.StyleInfo");
            this.VSKetChuyenDoanhThu.TabIndex = 0x15;
            this.VSKetChuyenDoanhThu.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.ImageList1.ImageStream = (ImageListStreamer) manager.GetObject("ImageList1.ImageStream");
            this.ImageList1.TransparentColor = Color.Transparent;
            this.ImageList1.Images.SetKeyName(0, "orders_main.png");
            this.ImageList1.Images.SetKeyName(1, "checkingacct.png");
            this.ImageList1.Images.SetKeyName(2, "billing.png");
            this.CmdExit.Image = ACCOUNTING.My.Resources.Resources.Closed;
            this.CmdExit.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x31c, 5);
            this.CmdExit.Location = point;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x5f, 0x19);
            this.CmdExit.Size = size;
            this.CmdExit.TabIndex = 11;
            this.CmdExit.Text = "&Tho\x00e1t";
            this.CmdExit.UseVisualStyleBackColor = true;
            this.CmdGhiSo.Image = (Image) manager.GetObject("CmdGhiSo.Image");
            this.CmdGhiSo.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x2b7, 6);
            this.CmdGhiSo.Location = point;
            this.CmdGhiSo.Name = "CmdGhiSo";
            size = new Size(0x5f, 0x19);
            this.CmdGhiSo.Size = size;
            this.CmdGhiSo.TabIndex = 9;
            this.CmdGhiSo.Text = "&Ghi sổ";
            this.CmdGhiSo.UseVisualStyleBackColor = true;
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage2);
            this.C1DockingTab1.Dock = DockStyle.Fill;
            point = new Point(0, 0);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            this.C1DockingTab1.SelectedIndex = 2;
            size = new Size(0x37e, 0x23f);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 0;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.GroupBox2);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox1);
            this.C1DockingTabPage1.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x37c, 0x225);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "F7. Tập hợp doanh thu - chi ph\x00ed";
            this.C1DockingTabPage2.Controls.Add(this.GroupBox5);
            this.C1DockingTabPage2.Controls.Add(this.GroupBox3);
            this.C1DockingTabPage2.Controls.Add(this.GroupBox4);
            this.C1DockingTabPage2.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(0x37c, 0x225);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 1;
            this.C1DockingTabPage2.Text = "F8. Kết chuyển doanh thu - chi ph\x00ed";
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdExit);
            this.Panel1.Controls.Add(this.CmdGhiSo);
            this.Panel1.Dock = DockStyle.Bottom;
            point = new Point(0, 0x21e);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x37e, 0x21);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x5d;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37e, 0x23f);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.C1DockingTab1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_KetChuyenChiPhi";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "TH-0007             ";
            this.Text = "KET CHUYEN DOANH THU CHI PHI";
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            ((ISupportInitialize) this.TxtChiPhiCo).EndInit();
            ((ISupportInitialize) this.TxtChiPhiNo).EndInit();
            this.VSChiPhi.EndInit();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            ((ISupportInitialize) this.TxtDoanhThuCo).EndInit();
            ((ISupportInitialize) this.TxtDoanhThuNo).EndInit();
            this.VSDoanhThu.EndInit();
            this.GroupBox5.ResumeLayout(false);
            this.VSKetChuyenLaiLo.EndInit();
            this.GroupBox4.ResumeLayout(false);
            this.GroupBox4.PerformLayout();
            ((ISupportInitialize) this.TxtTongKetChuyenChiPhi).EndInit();
            this.VSKetChuyenChiPhi.EndInit();
            this.GroupBox3.ResumeLayout(false);
            this.GroupBox3.PerformLayout();
            ((ISupportInitialize) this.TxtKetChuyenDoanhThu).EndInit();
            this.VSKetChuyenDoanhThu.EndInit();
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.C1DockingTabPage2.ResumeLayout(false);
            this.Panel1.ResumeLayout(false);
            this.ResumeLayout(false);
        }

        public void KetChuyenChiPhi()
        {
            double num3 = 0.0;
            double num2 = 0.0;
            C1.Win.C1FlexGrid.C1FlexGrid vSKetChuyenChiPhi = this.VSKetChuyenChiPhi;
            vSKetChuyenChiPhi.Rows.Count = 1;
            int num4 = this.VSChiPhi.Rows.Count - 1;
            for (int i = 1; i <= num4; i++)
            {
                if (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 9]), 0, modGeneral.TypeOfValue.Nothing)) == 0.0)
                {
                    vSKetChuyenChiPhi.AddItem("");
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 0]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 1]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 2] = this.pKhoaTKDoanhThu;
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 3] = this.pSoTKDoanhThu;
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 2]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 3]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 4]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 5]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 6]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 7]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 10] = modGeneral.Tranlated("Kết chuyển chi ph\x00ed th\x00e1ng", "") + " " + LVYModule.sRight(this.cFrmNamThang, 2) + "/" + LVYModule.sLeft(this.cFrmNamThang, 4);
                    num3 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 8]), 0, modGeneral.TypeOfValue.Nothing));
                    num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSChiPhi[i, 9]), 0, modGeneral.TypeOfValue.Nothing));
                    if (num3 > num2)
                    {
                        vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 11] = num3 - num2;
                        vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 12] = "CO";
                    }
                    else
                    {
                        vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 11] = num2 - num3;
                        vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 12] = "NO";
                    }
                }
            }
            vSKetChuyenChiPhi = null;
            this.TxtTongKetChuyenChiPhi.Value = this.TongKetChuyenChiPhi();
        }

        public void KetChuyenDoanhThu()
        {
            double num3 = 0.0;
            double num2 = 0.0;
            C1.Win.C1FlexGrid.C1FlexGrid vSKetChuyenDoanhThu = this.VSKetChuyenDoanhThu;
            vSKetChuyenDoanhThu.Rows.Count = 1;
            int num4 = this.VSDoanhThu.Rows.Count - 1;
            for (int i = 1; i <= num4; i++)
            {
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectGreater(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 9]), 0, modGeneral.TypeOfValue.Nothing), 0, false))
                {
                    vSKetChuyenDoanhThu.AddItem("");
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 0]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 1]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 2] = this.pKhoaTKDoanhThu;
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 3] = this.pSoTKDoanhThu;
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 2]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 3]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 4]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 5]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 6]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 7]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 10] = modGeneral.Tranlated("Kết chuyển doanh thu th\x00e1ng", "") + " " + LVYModule.sRight(this.cFrmNamThang, 2) + "/" + LVYModule.sLeft(this.cFrmNamThang, 4);
                    num3 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 8]), 0, modGeneral.TypeOfValue.Nothing));
                    num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoanhThu[i, 9]), 0, modGeneral.TypeOfValue.Nothing));
                    if (num3 > num2)
                    {
                        vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 11] = num3 - num2;
                    }
                    else
                    {
                        vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 11] = num2 - num3;
                    }
                }
            }
            vSKetChuyenDoanhThu = null;
            this.TxtKetChuyenDoanhThu.Value = LVYModule.SumColGrid(this.VSKetChuyenDoanhThu, 11);
        }

        private void KetChuyenDoi()
        {
            int num;
            double num3 = 0.0;
            double num2 = 0.0;
            C1.Win.C1FlexGrid.C1FlexGrid vSKetChuyenDoanhThu = this.VSKetChuyenDoanhThu;
            int num4 = this.VSChiPhi.Rows.Count - 1;
            for (num = 1; num <= num4; num++)
            {
                if (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 9]), 0, modGeneral.TypeOfValue.Nothing)) != 0.0)
                {
                    vSKetChuyenDoanhThu.AddItem("");
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 0]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 1]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 2] = this.pKhoaTKDoanhThu;
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 3] = this.pSoTKDoanhThu;
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 2]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 3]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 4]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 5]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 6]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 7]);
                    vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 10] = modGeneral.Tranlated("Kết chuyển chi ph\x00ed th\x00e1ng", "") + " " + LVYModule.sRight(this.cFrmNamThang, 2) + "/" + LVYModule.sLeft(this.cFrmNamThang, 4);
                    num3 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 8]), 0, modGeneral.TypeOfValue.Nothing));
                    num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSChiPhi[num, 9]), 0, modGeneral.TypeOfValue.Nothing));
                    if (num3 > num2)
                    {
                        vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 11] = num3 - num2;
                    }
                    else
                    {
                        vSKetChuyenDoanhThu[vSKetChuyenDoanhThu.Rows.Count - 1, 11] = num2 - num3;
                    }
                }
            }
            vSKetChuyenDoanhThu = null;
            this.TxtKetChuyenDoanhThu.Value = LVYModule.SumColGrid(this.VSKetChuyenDoanhThu, 11);
            C1.Win.C1FlexGrid.C1FlexGrid vSKetChuyenChiPhi = this.VSKetChuyenChiPhi;
            int num5 = this.VSDoanhThu.Rows.Count - 1;
            for (num = 1; num <= num5; num++)
            {
                if (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 8]), 0, modGeneral.TypeOfValue.Nothing)) != 0.0)
                {
                    vSKetChuyenChiPhi.AddItem("");
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 0]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 1]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 2] = this.pKhoaTKDoanhThu;
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 3] = this.pSoTKDoanhThu;
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 2]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 3]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 4]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 5]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 6]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 7]);
                    vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 10] = modGeneral.Tranlated("Kết chuyển doanh thu th\x00e1ng", "") + " " + LVYModule.sRight(this.cFrmNamThang, 2) + "/" + LVYModule.sLeft(this.cFrmNamThang, 4);
                    num3 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 8]), 0, modGeneral.TypeOfValue.Nothing));
                    num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSDoanhThu[num, 9]), 0, modGeneral.TypeOfValue.Nothing));
                    if (num3 > num2)
                    {
                        vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 11] = num3 - num2;
                    }
                    else
                    {
                        vSKetChuyenChiPhi[vSKetChuyenChiPhi.Rows.Count - 1, 11] = num2 - num3;
                    }
                }
            }
            vSKetChuyenChiPhi = null;
            this.TxtTongKetChuyenChiPhi.Value = LVYModule.SumColGrid(this.VSKetChuyenChiPhi, 11);
        }

        public void KetChuyenLaiLo()
        {
            double num2 = 0.0;
            double num = 0.0;
            num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtKetChuyenDoanhThu.Value), 0, modGeneral.TypeOfValue.Nothing));
            num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongKetChuyenChiPhi.Value), 0, modGeneral.TypeOfValue.Nothing));
            this.VSKetChuyenLaiLo.Rows.Count = 1;
            this.VSKetChuyenLaiLo.AddItem("");
            C1.Win.C1FlexGrid.C1FlexGrid vSKetChuyenLaiLo = this.VSKetChuyenLaiLo;
            vSKetChuyenLaiLo[vSKetChuyenLaiLo.Rows.Count - 1, 0] = this.pKhoaTKDoanhThu;
            vSKetChuyenLaiLo[vSKetChuyenLaiLo.Rows.Count - 1, 1] = this.pSoTKDoanhThu;
            vSKetChuyenLaiLo[vSKetChuyenLaiLo.Rows.Count - 1, 2] = this.pKhoaTKLoiNhuan;
            vSKetChuyenLaiLo[vSKetChuyenLaiLo.Rows.Count - 1, 3] = this.pSoTKLoiNuan;
            vSKetChuyenLaiLo[vSKetChuyenLaiLo.Rows.Count - 1, 4] = modGeneral.Tranlated("Kết chuyển l\x00e3i lỗ th\x00e1ng", "") + " " + LVYModule.sRight(this.cFrmNamThang, 2) + "/" + LVYModule.sLeft(this.cFrmNamThang, 4);
            if (num2 > num)
            {
                vSKetChuyenLaiLo[vSKetChuyenLaiLo.Rows.Count - 1, 5] = num2 - num;
            }
            else
            {
                vSKetChuyenLaiLo[vSKetChuyenLaiLo.Rows.Count - 1, 5] = num - num2;
            }
            vSKetChuyenLaiLo = null;
        }

        public void LoadChiPhi()
        {
            DataTable chiPhi = this.objCP.GetChiPhi();
            this.VSChiPhi.Rows.Count = 1;
            C1.Win.C1FlexGrid.C1FlexGrid vSChiPhi = this.VSChiPhi;
            int num2 = chiPhi.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSChiPhi.AddItem("");
                vSChiPhi[vSChiPhi.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][0]);
                vSChiPhi[vSChiPhi.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][1]);
                vSChiPhi[vSChiPhi.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][2]);
                vSChiPhi[vSChiPhi.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][3]);
                vSChiPhi[vSChiPhi.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][4]);
                vSChiPhi[vSChiPhi.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][5]);
                vSChiPhi[vSChiPhi.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][6]);
                vSChiPhi[vSChiPhi.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][7]);
                vSChiPhi[vSChiPhi.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][8]);
                vSChiPhi[vSChiPhi.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(chiPhi.Rows[i][9]);
            }
            vSChiPhi = null;
            this.TxtChiPhiNo.Value = LVYModule.SumColGrid(this.VSChiPhi, 8);
            this.TxtChiPhiCo.Value = LVYModule.SumColGrid(this.VSChiPhi, 9);
        }

        public void LoadDoanhThu()
        {
            DataTable doanhThu = this.objCP.GetDoanhThu();
            this.VSDoanhThu.Rows.Count = 1;
            C1.Win.C1FlexGrid.C1FlexGrid vSDoanhThu = this.VSDoanhThu;
            int num2 = doanhThu.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSDoanhThu.AddItem("");
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][0]);
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][1]);
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][2]);
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][3]);
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][4]);
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][5]);
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][6]);
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][7]);
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][8]);
                vSDoanhThu[vSDoanhThu.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(doanhThu.Rows[i][9]);
            }
            vSDoanhThu = null;
            this.TxtDoanhThuNo.Value = LVYModule.SumColGrid(this.VSDoanhThu, 8);
            this.TxtDoanhThuCo.Value = LVYModule.SumColGrid(this.VSDoanhThu, 9);
        }

        public bool Save()
        {
            this.objCP.KhoaChungTu = this.cFrmKhoaChungTu;
            return this.objCP.Save();
        }

        public bool SaveCPTmp()
        {
            bool flag=false;
            C1.Win.C1FlexGrid.C1FlexGrid vSKetChuyenChiPhi = this.VSKetChuyenChiPhi;
            int num2 = vSKetChuyenChiPhi.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                this.objCP.NamThang = this.cFrmNamThang;
                this.objCP.KhoaChungTu = this.cFrmKhoaChungTu;
                this.objCP.SoChungTu = this.cFrmSoChungTu;
                this.objCP.NgayChungTu = LVYModule.Date2Char(this.cFrmNgayChungTu);
                this.objCP.KhoaTaiKhoanNo = Conversions.ToString(vSKetChuyenChiPhi[i, 2]);
                this.objCP.KhoaDoiTuongNo = "";
                this.objCP.KhoaBoPhanNo = "";
                this.objCP.KhoaSanPhamNo = "";
                this.objCP.KhoaHopDongNo = "";
                this.objCP.KhoaKhoanMucNo = "";
                this.objCP.KhoaTaiKhoanCo = Conversions.ToString(vSKetChuyenChiPhi[i, 0]);
                this.objCP.KhoaDoiTuongCo = "";
                this.objCP.KhoaBoPhanCo = Conversions.ToString(vSKetChuyenChiPhi[i, 4]);
                this.objCP.KhoaSanPhamCo = Conversions.ToString(vSKetChuyenChiPhi[i, 6]);
                this.objCP.KhoaHopDongCo = Conversions.ToString(vSKetChuyenChiPhi[i, 8]);
                this.objCP.KhoaKhoanMucCo = "";
                this.objCP.LoaiTien = "VND";
                this.objCP.TyGia = 1.0;
                this.objCP.SoPhatSinhNT = Conversions.ToDouble(vSKetChuyenChiPhi[i, 11]);
                this.objCP.SoPhatSinh = this.objCP.SoPhatSinhNT;
                this.objCP.DienGiai = Conversions.ToString(vSKetChuyenChiPhi[i, 10]);
                this.objCP.KhoaDonVi = modGeneral.H_CLIENT;
                this.objCP.Send = 0;
                if (!this.objCP.SaveTmp())
                {
                    return false;
                }
            }
            return true;
            vSKetChuyenChiPhi = null;
            return flag;
        }

        public bool SaveDTTmp()
        {
            bool flag=false;
            C1.Win.C1FlexGrid.C1FlexGrid vSKetChuyenDoanhThu = this.VSKetChuyenDoanhThu;
            int num2 = vSKetChuyenDoanhThu.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                this.objCP.NamThang = this.cFrmNamThang;
                this.objCP.KhoaChungTu = this.cFrmKhoaChungTu;
                this.objCP.SoChungTu = this.cFrmSoChungTu;
                this.objCP.NgayChungTu = LVYModule.Date2Char(this.cFrmNgayChungTu);
                this.objCP.KhoaTaiKhoanNo = Conversions.ToString(vSKetChuyenDoanhThu[i, 0]);
                this.objCP.KhoaDoiTuongNo = "";
                this.objCP.KhoaBoPhanNo = Conversions.ToString(vSKetChuyenDoanhThu[i, 4]);
                this.objCP.KhoaSanPhamNo = Conversions.ToString(vSKetChuyenDoanhThu[i, 6]);
                this.objCP.KhoaHopDongNo = Conversions.ToString(vSKetChuyenDoanhThu[i, 8]);
                this.objCP.KhoaKhoanMucNo = "";
                this.objCP.KhoaTaiKhoanCo = Conversions.ToString(vSKetChuyenDoanhThu[i, 2]);
                this.objCP.KhoaDoiTuongCo = "";
                this.objCP.KhoaBoPhanCo = "";
                this.objCP.KhoaSanPhamCo = "";
                this.objCP.KhoaHopDongCo = "";
                this.objCP.KhoaKhoanMucCo = "";
                this.objCP.LoaiTien = "VND";
                this.objCP.TyGia = 1.0;
                this.objCP.SoPhatSinhNT = Conversions.ToDouble(vSKetChuyenDoanhThu[i, 11]);
                this.objCP.SoPhatSinh = this.objCP.SoPhatSinhNT;
                this.objCP.DienGiai = Conversions.ToString(vSKetChuyenDoanhThu[i, 10]);
                this.objCP.KhoaDonVi = modGeneral.H_CLIENT;
                this.objCP.Send = 0;
                if (!this.objCP.SaveTmp())
                {
                    return false;
                }
            }
            return true;
            vSKetChuyenDoanhThu = null;
            return flag;
        }

        public bool SaveLaiLoTmp()
        {
            bool flag=false;
            double num2 = 0.0;
            double num = 0.0;
            num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtKetChuyenDoanhThu.Value), 0, modGeneral.TypeOfValue.Nothing));
            num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongKetChuyenChiPhi.Value), 0, modGeneral.TypeOfValue.Nothing));
            clsKetChuyenChiPhi objCP = this.objCP;
            this.objCP.NamThang = this.cFrmNamThang;
            this.objCP.KhoaChungTu = this.cFrmKhoaChungTu;
            this.objCP.SoChungTu = this.cFrmSoChungTu;
            this.objCP.NgayChungTu = LVYModule.Date2Char(this.cFrmNgayChungTu);
            if (num2 > num)
            {
                this.objCP.KhoaTaiKhoanNo = Conversions.ToString(this.VSKetChuyenLaiLo[1, 0]);
                this.objCP.KhoaTaiKhoanCo = Conversions.ToString(this.VSKetChuyenLaiLo[1, 2]);
            }
            else
            {
                this.objCP.KhoaTaiKhoanNo = Conversions.ToString(this.VSKetChuyenLaiLo[1, 2]);
                this.objCP.KhoaTaiKhoanCo = Conversions.ToString(this.VSKetChuyenLaiLo[1, 0]);
            }
            this.objCP.KhoaDoiTuongNo = "";
            this.objCP.KhoaBoPhanNo = "";
            this.objCP.KhoaSanPhamNo = "";
            this.objCP.KhoaHopDongNo = "";
            this.objCP.KhoaKhoanMucNo = "";
            this.objCP.KhoaDoiTuongCo = "";
            this.objCP.KhoaBoPhanCo = "";
            this.objCP.KhoaSanPhamCo = "";
            this.objCP.KhoaHopDongCo = "";
            this.objCP.KhoaKhoanMucCo = "";
            this.objCP.LoaiTien = "VND";
            this.objCP.TyGia = 1.0;
            this.objCP.SoPhatSinhNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSKetChuyenLaiLo[1, 5]), 0, modGeneral.TypeOfValue.Nothing));
            this.objCP.SoPhatSinh = this.objCP.SoPhatSinhNT;
            this.objCP.DienGiai = Conversions.ToString(this.VSKetChuyenLaiLo[1, 4]);
            this.objCP.KhoaDonVi = modGeneral.H_CLIENT;
            this.objCP.Send = 0;
            return objCP.SaveTmp();
            objCP = null;
            return flag;
        }

        public bool SaveTmp()
        {
            if (!this.SaveDTTmp())
            {
                return false;
            }
            if (!this.SaveCPTmp())
            {
                return false;
            }
            if (!this.SaveLaiLoTmp())
            {
                return false;
            }
            return true;
        }

        public double TongKetChuyenChiPhi()
        {
            double num3 = 0.0;
            double num2 = 0.0;
            C1.Win.C1FlexGrid.C1FlexGrid vSKetChuyenChiPhi = this.VSKetChuyenChiPhi;
            int num5 = vSKetChuyenChiPhi.Rows.Count - 1;
            for (int i = 1; i <= num5; i++)
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSKetChuyenChiPhi[i, 12]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "CO")
                {
                    num2 += Conversion.Val(RuntimeHelpers.GetObjectValue(vSKetChuyenChiPhi[i, 11]));
                }
                else
                {
                    num3 += Conversion.Val(RuntimeHelpers.GetObjectValue(vSKetChuyenChiPhi[i, 11]));
                }
            }
            vSKetChuyenChiPhi = null;
            return (num2 - num3);
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual Button CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual Button CmdGhiSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdGhiSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdGhiSo_Click);
                if (this._CmdGhiSo != null)
                {
                    this._CmdGhiSo.Click -= handler;
                }
                this._CmdGhiSo = value;
                if (this._CmdGhiSo != null)
                {
                    this._CmdGhiSo.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual GroupBox GroupBox3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox3 = value;
            }
        }

        internal virtual GroupBox GroupBox4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox4 = value;
            }
        }

        internal virtual GroupBox GroupBox5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox5 = value;
            }
        }

        internal virtual ImageList ImageList1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ImageList1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ImageList1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual C1NumericEdit TxtChiPhiCo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtChiPhiCo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtChiPhiCo = value;
            }
        }

        internal virtual C1NumericEdit TxtChiPhiNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtChiPhiNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtChiPhiNo = value;
            }
        }

        internal virtual C1NumericEdit TxtDoanhThuCo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDoanhThuCo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDoanhThuCo = value;
            }
        }

        internal virtual C1NumericEdit TxtDoanhThuNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDoanhThuNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDoanhThuNo = value;
            }
        }

        internal virtual C1NumericEdit TxtKetChuyenDoanhThu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtKetChuyenDoanhThu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtKetChuyenDoanhThu = value;
            }
        }

        internal virtual C1NumericEdit TxtTongKetChuyenChiPhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongKetChuyenChiPhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongKetChuyenChiPhi = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSChiPhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSChiPhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSChiPhi = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSDoanhThu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSDoanhThu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSDoanhThu = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSKetChuyenChiPhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSKetChuyenChiPhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSKetChuyenChiPhi = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSKetChuyenDoanhThu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSKetChuyenDoanhThu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSKetChuyenDoanhThu = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSKetChuyenLaiLo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSKetChuyenLaiLo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSKetChuyenLaiLo = value;
            }
        }
    }
}

